<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">

    <title>呼叫信息列表</title>
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/bootstrap.min.css?v=3.3.5" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/font-awesome.min.css?v=4.4.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/animate.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/style.min.css?v=4.0.0" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/toastr/toastr.min.css" rel="stylesheet">
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/bootstrap-table/bootstrap-table.min.css" rel="stylesheet">
    
    <link href="<%=request.getContextPath()%>/views/sysdefault/css/plugins/datapicker/datepicker3.css" rel="stylesheet">
	
</head>

<body class="gray-bg">
    <!-- 分页 -->
	<form id="pagerForm" method="post" action="callInfoList.do">
		<input type="hidden" name="currentPage" id="currentPage" value="1" />
	</form>
    
    
    <div class="wrapper wrapper-content animated fadeInRight">
    	<div class="row">
            <div class="col-sm-12">
                <div class="ibox float-e-margins">
                    <div class="ibox-title">
                        <h5>呼叫信息列表</h5>
                        <div class="ibox-tools">
                            <a class="collapse-link">
                                <i class="fa fa-chevron-up"></i>
                            </a>
                        </div>
                    </div>
                    <div class="ibox-content">
                    
                    	<!-- 搜索区 -->
                    	<%-- <div class="m-b-sm">
                    	<form id="proList" name="newsList" action="callInfoList.do" method="post">
                    	
                    	<div class="col-md-2">
                    		<div class="input-group">
                    			<span class="input-group-addon">用户姓名:</span>
								<input type="text" class="form-control" name="name" id="title" value="${dataStore.name}"/>
							</div>
						</div>
						
						<div class="col-md-2">
                    		<div class="input-group">
                    			<span class="input-group-addon">登录ip:</span>
								<input type="text" class="form-control" name="ip" id="title" value="${dataStore.ip}"/>
							</div>
						</div>
						
						<div class="col-md-2">
							<div class="input-group">
							<span class="input-group-addon">日志类型:</span>
							<select name="type" class="form-control">
								<option value="">所有类型</option>
								<option value="login" <c:if test="${dataStore.type == 'login'}">selected="selected"</c:if> >登录</option>
								<option value="loginout" <c:if test="${dataStore.type == 'loginout'}">selected="selected"</c:if> >退出登录</option>
							</select>
							</div>
						</div>
							
						<div class="col-md-4" id="data_5">
                            <div class="input-daterange input-group" id="datepicker">
                            	<span class="input-group-addon input-title">操作时间:</span>
                                <input type="text" class="form-control" name="start" readonly="readonly" value="${dataStore.start}" />
                                <span class="input-group-addon input-title">至</span>
                                <input type="text" class="form-control" name="end" readonly="readonly" value="${dataStore.end}" />
                            </div>
                        </div>
                    	
                    	<button type="submit" id="search" class="btn btn-info" ><i class="fa fa-search"></i>&nbsp;&nbsp;搜索</button>
                    	</form>
                    	</div>
                    	<br /> --%>

						<!-- 列表区 -->
						<div class="m-b-sm">
							<table id="table" data-toggle="table" data-striped="true" >
								<thead>
									<tr>
										<th data-visible="false">id</th>
										<th data-width="5%" data-align="center">序号</th>
										<th data-width="20%">小区id</th>
										<th data-width="10%">设备id</th>
										<th data-width="10%">QQ号</th>
										<th data-width="10%">昵称</th>
										<th data-width="15%">主叫方地址</th>
										<th data-width="15%">被叫方地址</th>
										<th data-width="15%">呼叫时间</th>
										
									</tr>
								</thead>
								<tbody>
									<c:forEach items="${pageInfo.resultList}" var="item" varStatus="i">
										<tr>
											<td>${item.callId}</td>
											<td>${i.index + 1}</td>
											<td>${item.communityGuid}</td>
											<td>${item.deviceid}</td>
											<td>${item.qq}</td>
											<td>${item.nickname}</td>
											<td>${item.callFrom}</td>
											<td>${item.calTo}</td>
											<td>${item.callTime}</td>
										</tr>
									</c:forEach>
								</tbody>
							</table>
						</div>

						<jsp:include page="../../common/turnPage.jsp" />
					</div>
                </div>
            </div>
            
        </div>

		<!-- <div class="row">
			<div class="col-sm-12">
				<div class="ibox float-e-margins">
					<div class="ibox-content">
						
					</div>
				</div>
			</div>
		</div> -->

	</div>
    
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/jquery.min.js?v=2.1.4"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/bootstrap.min.js?v=3.3.5"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/content.min.js?v=1.0.0"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/toastr/toastr.min.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/layer/layer.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/bootstrap-table/bootstrap-table.js"></script>
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/bootstrap-table/locale/bootstrap-table-zh-CN.min.js"></script>
    
    <script src="<%=request.getContextPath()%>/views/sysdefault/js/plugins/datapicker/bootstrap-datepicker.js"></script>
    
    <script type="text/javascript">
    
    var basePath = '<%=request.getContextPath()%>';
    
    toastr.options = {
  		  "closeButton": true,
  		  "debug": false,
  		  "progressBar": true,
  		  "positionClass": "toast-top-left",
  		  "showDuration": "400",
  		  "hideDuration": "1000",
  		  "timeOut": "3000",
  		  "extendedTimeOut": "1000",
  		  "showEasing": "swing",
  		  "hideEasing": "linear",
  		  "showMethod": "fadeIn",
  		  "hideMethod": "fadeOut"
  		}
    
    $("#data_5 .input-daterange").datepicker({
        keyboardNavigation: !1,
        forceParse: !1,
        autoclose: !0
    });
    
    </script>
    
</body>

</html>